package com.guigu.eduservice.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @Author: janecraft
 * @Date: 2022/5/31
 * @Description: com.guigu.eduservice.entity
 * @Version： 1.0
 */
@Data
@TableName("edu_teacher")
public class EduTeacher implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ID_WORKER_STR)
    private String id;

    private String name;

    private String intro;

    private String career;

    private Integer level;

    private String avatar;

    private Integer sort;

    // 逻辑删除
    @TableLogic
    private Boolean isDeleted;

    // 插入时自动填充
    @TableField(fill = FieldFill.INSERT)
    private Date gmtCreate;

    // 修改或者插入时自动填充
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date gmtModified;
}
